import request from '@/utils/request'

export function list${rootPath?cap_first}(query) {
  return request({
    url: '/${rootPath}/list',
    method: 'get',
    params: query
  })
}

export function create${rootPath?cap_first}(data) {
  return request({
    url: '/${rootPath}/create',
    method: 'post',
    data
  })
}



export function update${rootPath?cap_first}(data) {
  return request({
    url: '/${rootPath}/update',
    method: 'post',
    data
  })
}

export function delete${rootPath?cap_first}(data) {
  return request({
    url: '/${rootPath}/delete',
    method: 'post',
    data
  })
}
